#pragma once

class WWeather: public IWorldMod, public ISingleton<WWeather>
{
public:
	WWeather();
	virtual ~WWeather();

	/*-IWorldMod----------------------------------------------------------------*/
	void OnLevelLoad(const std::string& level);
	void OnLevelUnload();
	void OnLevelCalc();

	/*--------------------------------------------------------------------------*/

	void SetTime(float total);
	float GetTime() const;

private:
	float m_totalDayMinute;

	void UpdateSunDirection();
	DirectionalLight* m_sun;
};

